package com.xy.entity.test;

import lombok.Data;

import javax.persistence.*;

/**
 * Created by Thinkpad on 2018/1/15.
 */
@Entity
@Data
public class T3 {
    @Id
    private String id ;

    private String name;

    @ManyToOne(cascade = {CascadeType.REFRESH},fetch = FetchType.EAGER)
    @JoinColumn(name = "parent_id")
    private T1 t1;
}
